changing Action to tuple, improve server