implemented serialization and os_command