print x and y in console for debug
generation ok
add port to request resource