add finally to get and post