fix apis for creating deck